package br.com.amadeus.android.entities;

import java.util.Date;
import java.util.ArrayList;

public class Course implements Comparable<Course>{

	private int id;
	private String name;
	private Date beginDate;
	private Date endDate;
	private String objectives;
	private String content;
	private String active;
	private int amadeus_id;
	private int maxAmountStudents;
	private int numberOfStudentsInCourse;
		
	private ArrayList<Resource> resourceList;
	private ArrayList<CourseUser> courseUserList;
	
	
	public Course() {
	}

	public Course(int id) {
		super();
		this.id = id;
	}

	public Course(int id, String name, Date beginDate, Date endDate,
			String objectives, String content, String active, int idAmadeus, int maxAmountStudents, int numberOfStudentsInCourse) {
		super();
		this.id = id;
		this.name = name;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.objectives = objectives;
		this.content = content;
		this.active = active;
		this.amadeus_id = idAmadeus;
		this.maxAmountStudents = maxAmountStudents;
		this.numberOfStudentsInCourse = numberOfStudentsInCourse;
	}
	
	public Course(int id, String name, Date beginDate, Date endDate,
			String objectives, ArrayList<Resource> resourceList,
			ArrayList<CourseUser> courseUserList) {
		super();
		this.id = id;
		this.name = name;
		this.beginDate = beginDate;
		this.endDate = endDate;
		this.objectives = objectives;
		this.resourceList = resourceList;
		this.courseUserList = courseUserList;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getObjectives() {
		return objectives;
	}

	public void setObjectives(String objectives) {
		this.objectives = objectives;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public ArrayList<Resource> getResourceList() {
		return resourceList;
	}

	public void setResourceList(ArrayList<Resource> resourceList) {
		this.resourceList = resourceList;
	}

	public ArrayList<CourseUser> getCourseUserList() {
		return courseUserList;
	}

	public void setCourseUserList(ArrayList<CourseUser> courseUserList) {
		this.courseUserList = courseUserList;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getId_amadeus() {
		return amadeus_id;
	}

	public void setId_amadeus(int id_amadeus) {
		this.amadeus_id = id_amadeus;
	}

	public int getMaxAmountStudents() {
		return maxAmountStudents;
	}

	public void setMaxAmountStudents(int maxAmountStudents) {
		this.maxAmountStudents = maxAmountStudents;
	}

	public int getNumberOfStudentsInCourse() {
		return numberOfStudentsInCourse;
	}

	public void setNumberOfStudentsInCourse(int numberOfStudentsInCourse) {
		this.numberOfStudentsInCourse = numberOfStudentsInCourse;
	}
	
	public String getActive() {
		return active;
	}

	public void setActive(String active) {
		this.active = active;
	}

	public int getAmadeus_id() {
		return amadeus_id;
	}

	public void setAmadeus_id(int amadeus_id) {
		this.amadeus_id = amadeus_id;
	}

	public int compareTo(Course c) {
		return String.valueOf(amadeus_id).compareTo(String.valueOf(c.getId_amadeus()));
	}


}
